package com.lhn.bbs.dao;

import com.lhn.bbs.entity.Class1;
import com.lhn.bbs.mapper.Class1Dao;
import com.lhn.bbs.mapper.UserclassDao;
import com.lhn.bbs.vo.ThemeVo;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
public class ClassUserDao {


    @Autowired
    private Class1Dao class1Dao ;

    @Test
    public void  findBytoid() {

        Class1 class1 = new Class1();
        class1.setClassname("4897416");
        class1.setClasscontent("4598741");

        int classID = class1Dao.findClassID(class1);

        log.info("======"+classID);
    }


}
